﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

using Gift.Security;

namespace WebSite
{
    public partial class test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            DataTable dt = SQLAccess.GreatDs("select * from db_Card ").Tables[0];

            foreach (DataRow dr in dt.Rows)
            {
                SQLAccess.DoSql("update db_card set cardpas='" + DESEncrypt.Encrypt(dr["cardpas"].ToString()) + "' where cardid = " + dr["cardid"].ToString());
            }
        }
    }
}